<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="slide_id" value="{$info['slide_id']|default=''}">
          <div class="row">
            <div class="col-md-12">
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="slide_name" value="{$info.slide_name|default=''}"  autocomplete="off"  required="required" placeholder="幻灯片名必须填写">
              </div>   
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片分类：</span>
                </div>
                <!-- /btn-group -->
                <select name="slide_cid" class="form-control select2" style="width:100%">
                <option value="">分类选择</option>
{volist name=":F('_data/list')" id="vo"}
<option value="{$vo.list_id}" {if isset($info['slide_cid'])} {eq name="vo.list_id" value="$info['slide_cid']"}selected{/eq}{/if}>{$vo.list_name}</option>{/volist}
<option value="-1" {if isset($info['slide_cid'])} {eq name="info['slide_cid']" value="-1"}selected{/eq}{/if}>手机</option></select>
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片视频：</span>
                </div>
                <!-- /btn-group -->
                <input class="form-control" id="slide_vid" name="slide_vid" type="text" value="{$info['slide_vid']|default=''}">
               <span class="input-group-btn">
                <button type="button" class="btn btn-success btn-flat btn-editone" href="{:url('vod/index',array('view'=>1))}" data-name="添加关联视频">添加</button>
               </span>
              </div>                                       
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片地址：</span>
                </div>
                <!-- /btn-group -->
               <input type="url" class="form-control" name="slide_url" value="{$info.slide_url|default=''}" placeholder="填写视频ID后自动获取地址">
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片图片：</span>
                </div>
                <!-- /btn-group -->
                <input id="slide_pic" class="form-control" size="50" name="slide_pic" type="text" value="{$info['slide_pic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-image" data-input-id="slide_pic" data-mimetype="image/*"  data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button>
                    </span>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片大图：</span>
                </div>
                <!-- /btn-group -->
                <input id="slide_bigpic" class="form-control" size="50" name="slide_bigpic" type="text" value="{$info['slide_bigpic']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-images" data-input-id="slide_bigpic" data-mimetype="image/*"  data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button>
                    </span>
              </div>              


               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">幻灯片简介：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="slide_content" class="form-control" style="height: 90px">{$info.slide_content|default=''}</textarea>
                </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片排序：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="slide_oid" value="{$info.slide_oid|default='0'}" autocomplete="false" placeholder="越小越前面" style="text-align:center; width:auto">
              </div>               
                                                                                              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">幻灯片状态：</span>
                </div>
                <!-- /btn-group -->
                <select name="slide_status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">已审</option>
          <option value="0" {eq name="info.slide_status" value="0" }selected{/eq}>未审</option>
                </select>
              </div>   
              
                                                                     
            </div>          
          </div>
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>

{include file="public/footer" /}
<!-- /.box-body -->    
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();	
	
});	
</script>	
</body>
</html>
